package demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class RequestParamController {

	@GetMapping("/param")
	public @ResponseBody String requestParam(@RequestParam("query") String query) {
		// http://localhost:8001/param?query=finley
		return "searching for: " + query;
	}

}
